-- GENERATED SPELL FOR [Wandering Skeleton] --


function spell0_10816(pUnit, Event) --@Bone Shards,n/a--
pUnit:FullCastSpellOnTarget(17014,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10816', 10270, 1)
end

function Sorts_10816(pUnit, Event)
local choix_sorts_10816 = math.random(0, 0)
if choix_sorts_10816 == 0 then
pUnit:RegisterEvent('spell0_10816', 1, 1)
end
end

function mob10816_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10816', math.random(1500, 3000), 1)
end

function mob10816_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10816_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10816_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10816, 1, 'mob10816_Action')
RegisterUnitEvent(10816, 2, 'mob10816_Leave')
RegisterUnitEvent(10816, 3, 'mob10816_Kill')
RegisterUnitEvent(10816, 4, 'mob10816_Die')
